<template>
  <div class="coupons-card">
    <div class="label">我的卡券（张）</div>
    <div class="num">0</div>
    <n-button
      style="--n-padding: 0"
      class="prive-btn btn-round"
      type="primary"
      round
      ghost
      @click="handCoupons"
    >
      查看卡券
    </n-button>
  </div>
</template>
<script setup lang="ts">
import { useRouter } from 'vue-router'
const router: any = useRouter()
const handCoupons = () => {
  router.push('/my/coupons')
}
</script>

<style scoped lang="scss">
.coupons-card {
  flex: 1;
  background: #ffffff;
  border-radius: 12px;
  opacity: 1;
  border: 1px solid #eeeeee;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 0;
  .label {
    font-size: 14px;
    font-family: PingFang SC, PingFang SC;
    font-weight: 400;
    color: #999999;
  }
  .num {
    margin-top: 20px;
    font-size: 30px;
    font-family: HONOR Sans, HONOR Sans;
    font-weight: 600;
    color: #333333;
  }
  .prive-btn {
    margin-top: 30px;
    font-size: 13px;
    width: 90px;
    height: 30px;
  }
}
</style>
